.class public Lcom/estrongs/android/pop/esclasses/ESImageView;
.super Landroid/widget/ImageView;
.source "ESImageView.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/esclasses/ESImageView$a;
    }
.end annotation


# instance fields
.field private a:Landroid/graphics/drawable/Drawable;

.field private b:Landroid/graphics/drawable/Drawable;

.field private c:Landroid/graphics/drawable/Drawable;

.field private d:Landroid/graphics/drawable/Drawable;

.field private e:Landroid/graphics/drawable/Drawable;

.field f:F

.field g:F

.field h:F

.field i:F

.field j:F

.field private k:Lcom/estrongs/android/pop/esclasses/ESImageView$a;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    const p1, 0x3eaaaaab

    .line 2
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->f:F

    .line 3
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->g:F

    .line 4
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->h:F

    .line 5
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    .line 6
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->j:F

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 7
    invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const p1, 0x3eaaaaab

    .line 8
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->f:F

    .line 9
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->g:F

    .line 10
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->h:F

    .line 11
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    .line 12
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->j:F

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 13
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const p1, 0x3eaaaaab

    .line 14
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->f:F

    .line 15
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->g:F

    .line 16
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->h:F

    .line 17
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    .line 18
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->j:F

    return-void
.end method

.method private a(Landroid/graphics/drawable/Drawable;)Z
    .locals 2

    .line 1
    instance-of v0, p1, Landroid/graphics/drawable/BitmapDrawable;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getPaint()Landroid/graphics/Paint;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/Paint;->getAlpha()I

    move-result p1

    const/16 v0, 0xff

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    const/4 v1, 0x1

    :cond_0
    return v1
.end method

.method private b(Landroid/graphics/drawable/Drawable;)Z
    .locals 2

    .line 1
    instance-of v0, p1, Landroid/graphics/drawable/BitmapDrawable;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getPaint()Landroid/graphics/Paint;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/Paint;->getAlpha()I

    move-result p1

    const/16 v0, 0x80

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    const/4 v1, 0x1

    :cond_0
    return v1
.end method

.method private c(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->a(Landroid/graphics/drawable/Drawable;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable$ConstantState;->newDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    const/16 v0, 0xff

    invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    :cond_0
    return-void
.end method

.method private setDrawableAlpha(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->b(Landroid/graphics/drawable/Drawable;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable$ConstantState;->newDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    const/16 v0, 0x80

    invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    :cond_0
    return-void
.end method


# virtual methods
.method public a(Landroid/graphics/drawable/Drawable;F)V
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    .line 4
    iput p2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->j:F

    return-void
.end method

.method public b(Landroid/graphics/drawable/Drawable;F)V
    .locals 0

    .line 3
    iput p2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->f:F

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method public c(Landroid/graphics/drawable/Drawable;F)V
    .locals 0

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    .line 5
    iput p2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    return-void
.end method

.method public d(Landroid/graphics/drawable/Drawable;F)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    .line 2
    iput p2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->g:F

    return-void
.end method

.method public e(Landroid/graphics/drawable/Drawable;F)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    if-eqz p1, :cond_0

    .line 2
    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    .line 3
    :cond_0
    iput p2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->h:F

    return-void
.end method

.method public getLeftCornorImage()Landroid/graphics/drawable/Drawable;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 7

    .line 1
    invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingLeft()I

    move-result v0

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->k:Lcom/estrongs/android/pop/esclasses/ESImageView$a;

    if-eqz v1, :cond_0

    .line 3
    invoke-interface {v1}, Lcom/estrongs/android/pop/esclasses/ESImageView$a;->a()V

    :cond_0
    const/4 v1, 0x0

    .line 4
    :try_start_0
    invoke-super {p0, p1}, Landroid/widget/ImageView;->onDraw(Landroid/graphics/Canvas;)V

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_1

    .line 6
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 7
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v4, v2

    .line 8
    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->f:F

    mul-float v4, v4, v5

    int-to-float v3, v3

    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->f:F

    mul-float v3, v3, v5

    invoke-static {v4, v3}, Ljava/lang/Math;->min(FF)F

    move-result v3

    float-to-int v3, v3

    .line 9
    iget-object v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    sub-int v5, v2, v3

    add-int/2addr v3, v0

    invoke-virtual {v4, v0, v5, v3, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 10
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 11
    :cond_1
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_2

    .line 12
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 13
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v4, v2

    .line 14
    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->g:F

    mul-float v4, v4, v5

    int-to-float v5, v3

    iget v6, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->g:F

    mul-float v5, v5, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->min(FF)F

    move-result v4

    float-to-int v4, v4

    .line 15
    iget-object v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    sub-int v6, v3, v4

    sub-int v4, v2, v4

    invoke-virtual {v5, v6, v4, v3, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 16
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 17
    :cond_2
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_3

    .line 18
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 19
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v2, v2

    .line 20
    iget v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->h:F

    mul-float v2, v2, v4

    int-to-float v4, v3

    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->h:F

    mul-float v4, v4, v5

    invoke-static {v2, v4}, Ljava/lang/Math;->min(FF)F

    move-result v2

    float-to-int v2, v2

    .line 21
    iget-object v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    sub-int v5, v3, v2

    invoke-virtual {v4, v5, v1, v3, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 22
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 23
    :cond_3
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_4

    .line 24
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 25
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v2, v2

    .line 26
    iget v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    mul-float v2, v2, v4

    int-to-float v3, v3

    iget v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    mul-float v3, v3, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->min(FF)F

    move-result v2

    float-to-int v2, v2

    .line 27
    iget-object v3, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    add-int v4, v0, v2

    invoke-virtual {v3, v0, v1, v4, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 28
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 29
    :cond_4
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_9

    .line 30
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 31
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v4, v2

    .line 32
    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->j:F

    mul-float v4, v4, v5

    int-to-float v5, v3

    iget v6, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->j:F

    mul-float v5, v5, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->min(FF)F

    move-result v4

    float-to-int v4, v4

    sub-int/2addr v3, v4

    .line 33
    div-int/lit8 v3, v3, 0x2

    sub-int/2addr v2, v4

    .line 34
    div-int/lit8 v2, v2, 0x2

    .line 35
    iget-object v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    add-int v6, v3, v4

    add-int/2addr v4, v2

    invoke-virtual {v5, v3, v2, v6, v4}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 36
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception v2

    .line 37
    invoke-virtual {v2}, Ljava/lang/RuntimeException;->printStackTrace()V

    .line 38
    invoke-virtual {v2}, Ljava/lang/RuntimeException;->getMessage()Ljava/lang/String;

    move-result-object v2

    const-string v3, "recycled bitmap"

    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v2

    if-ltz v2, :cond_9

    invoke-virtual {p0}, Landroid/widget/ImageView;->getTag()Ljava/lang/Object;

    move-result-object v2

    instance-of v2, v2, Lcom/estrongs/fs/g;

    if-eqz v2, :cond_9

    .line 39
    invoke-virtual {p0}, Landroid/widget/ImageView;->getTag()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    .line 40
    invoke-interface {v2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3, p0, v2}, Lcom/estrongs/android/icon/loader/c;->a(Ljava/lang/String;Landroid/widget/ImageView;Lcom/estrongs/fs/g;)V

    .line 41
    invoke-super {p0, p1}, Landroid/widget/ImageView;->onDraw(Landroid/graphics/Canvas;)V

    .line 42
    :try_start_1
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_5

    .line 43
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 44
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v4, v2

    .line 45
    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->f:F

    mul-float v4, v4, v5

    int-to-float v3, v3

    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->f:F

    mul-float v3, v3, v5

    invoke-static {v4, v3}, Ljava/lang/Math;->min(FF)F

    move-result v3

    float-to-int v3, v3

    .line 46
    iget-object v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    sub-int v5, v2, v3

    add-int/2addr v3, v0

    invoke-virtual {v4, v0, v5, v3, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 47
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 48
    :cond_5
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_6

    .line 49
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 50
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v4, v2

    .line 51
    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->g:F

    mul-float v4, v4, v5

    int-to-float v5, v3

    iget v6, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->g:F

    mul-float v5, v5, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->min(FF)F

    move-result v4

    float-to-int v4, v4

    .line 52
    iget-object v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    sub-int v6, v3, v4

    sub-int v4, v2, v4

    invoke-virtual {v5, v6, v4, v3, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 53
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 54
    :cond_6
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_7

    .line 55
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 56
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v2, v2

    .line 57
    iget v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->h:F

    mul-float v2, v2, v4

    int-to-float v4, v3

    iget v5, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->h:F

    mul-float v4, v4, v5

    invoke-static {v2, v4}, Ljava/lang/Math;->min(FF)F

    move-result v2

    float-to-int v2, v2

    .line 58
    iget-object v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    sub-int v5, v3, v2

    invoke-virtual {v4, v5, v1, v3, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 59
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 60
    :cond_7
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    if-eqz v2, :cond_8

    .line 61
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v2

    .line 62
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v3

    int-to-float v2, v2

    .line 63
    iget v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    mul-float v2, v2, v4

    int-to-float v3, v3

    iget v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    mul-float v3, v3, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->min(FF)F

    move-result v2

    float-to-int v2, v2

    .line 64
    iget-object v3, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    add-int v4, v0, v2

    invoke-virtual {v3, v0, v1, v4, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 65
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 66
    :cond_8
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    if-eqz v0, :cond_9

    .line 67
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredHeight()I

    move-result v0

    .line 68
    invoke-virtual {p0}, Landroid/widget/ImageView;->getMeasuredWidth()I

    move-result v1

    int-to-float v2, v0

    .line 69
    iget v3, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->j:F

    mul-float v2, v2, v3

    int-to-float v3, v1

    iget v4, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->j:F

    mul-float v3, v3, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->min(FF)F

    move-result v2

    float-to-int v2, v2

    sub-int/2addr v1, v2

    .line 70
    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v0, v2

    .line 71
    div-int/lit8 v0, v0, 0x2

    .line 72
    iget-object v3, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    add-int v4, v1, v2

    add-int/2addr v2, v0

    invoke-virtual {v3, v1, v0, v4, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 73
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    :catch_1
    move-exception p1

    .line 74
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_9
    :goto_0
    return-void
.end method

.method public setCenterImage(Landroid/graphics/drawable/Drawable;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method public setImageBitmap(Landroid/graphics/Bitmap;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    const/4 p1, 0x0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method public setImageDrawable(Landroid/graphics/drawable/Drawable;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    const/4 p1, 0x0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method public setImageResource(I)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageResource(I)V

    const/4 p1, 0x0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->e:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method public setLeftCornerImage(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    const v0, 0x3eaaaaab

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/esclasses/ESImageView;->b(Landroid/graphics/drawable/Drawable;F)V

    return-void
.end method

.method public setLeftTopCornerImage(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->i:F

    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/esclasses/ESImageView;->c(Landroid/graphics/drawable/Drawable;F)V

    return-void
.end method

.method public setOnDrawer(Lcom/estrongs/android/pop/esclasses/ESImageView$a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->k:Lcom/estrongs/android/pop/esclasses/ESImageView$a;

    return-void
.end method

.method public setRightCornerImage(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    const v0, 0x3eaaaaab

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/esclasses/ESImageView;->d(Landroid/graphics/drawable/Drawable;F)V

    return-void
.end method

.method public setTopCornerImage(Landroid/graphics/drawable/Drawable;)V
    .locals 1

    const v0, 0x3eaaaaab

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/esclasses/ESImageView;->e(Landroid/graphics/drawable/Drawable;F)V

    return-void
.end method

.method public setTranslucent(Z)V
    .locals 2

    .line 1
    :try_start_0
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-lt v0, v1, :cond_1

    if-eqz p1, :cond_0

    const/high16 p1, 0x3f000000    # 0.5f

    .line 2
    invoke-virtual {p0, p1}, Landroid/widget/ImageView;->setAlpha(F)V

    goto/16 :goto_1

    :cond_0
    const/high16 p1, 0x3f800000    # 1.0f

    .line 3
    invoke-virtual {p0, p1}, Landroid/widget/ImageView;->setAlpha(F)V

    goto/16 :goto_1

    :cond_1
    if-eqz p1, :cond_2

    .line 4
    invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->b(Landroid/graphics/drawable/Drawable;)Z

    move-result p1

    if-nez p1, :cond_3

    .line 5
    invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable$ConstantState;->newDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    const/16 v0, 0x80

    .line 6
    invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 7
    invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->setDrawableAlpha(Landroid/graphics/drawable/Drawable;)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->setDrawableAlpha(Landroid/graphics/drawable/Drawable;)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->setDrawableAlpha(Landroid/graphics/drawable/Drawable;)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->setDrawableAlpha(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0

    .line 12
    :cond_2
    invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->a(Landroid/graphics/drawable/Drawable;)Z

    move-result p1

    if-nez p1, :cond_3

    .line 13
    invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable$ConstantState;->newDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    const/16 v0, 0xff

    .line 14
    invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 15
    invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->a:Landroid/graphics/drawable/Drawable;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->c(Landroid/graphics/drawable/Drawable;)V

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->b:Landroid/graphics/drawable/Drawable;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->c(Landroid/graphics/drawable/Drawable;)V

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->c:Landroid/graphics/drawable/Drawable;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->c(Landroid/graphics/drawable/Drawable;)V

    .line 19
    iget-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESImageView;->d:Landroid/graphics/drawable/Drawable;

    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESImageView;->c(Landroid/graphics/drawable/Drawable;)V

    .line 20
    :cond_3
    :goto_0
    invoke-virtual {p0}, Landroid/widget/ImageView;->invalidate()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 21
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    return-void
.end method
